﻿using System;
using System.Collections.Generic;
using System.Text;
using Portal.Entity;
using MyLib;

namespace Portal.Logic
{
    public class ResourceRelationLogic
    {
        public void Save(ResourceRelationEntity ety)
        {
            DataAccess.Instance("BizDB").Insert("ResourceRelationLogic_Save", ety);
        }

        public List<ResourceRelationEntity> GetList(int sourceId)
        {
            return DataAccess.Instance("BizDB").GetList<ResourceRelationEntity>("ResourceRelationLogic_GetList", sourceId);
        }
    }
}
